let hd = {
  name: 'Lee',
  age: 23,
  sex: 1,
  news: {
    title: 'No1',
    content: 'bababababbabababba',
  },
  other: [{ auther: 'kk', time: 22 }],
}

const proxy = new Proxy(hd, {
  get(obj, name) {
    console.log('获取')

    return obj[name]
  },
  set(obj, name, value) {
    console.log('设置')
    obj[name] = value
    return true
  },
})

// 可以拦截对象属性，包括新增的对象属性
proxy.password = 123456
// console.table(hd)

proxy.other.push({ title: 'LOLOLO' })
